// 
// Decompiled by Procyon v0.5.36
// 

package com.akamai.botman;

import android.os.*;
import java.util.*;
import com.cyberfend.cyfsecurity.*;

final class w
{
    private final com.akamai.botman.x b;
    final com.akamai.botman.w.a a;
    
    w() {
        this.a = new com.akamai.botman.w.a((byte)0);
        this.b = new com.akamai.botman.x();
        this.a.a = android.os.SystemClock.uptimeMillis();
    }
    
    final class a implements java.util.Observer
    {
        long a;
        
        private a() {
        }
        
        @java.lang.Override
        public final void update(final java.util.Observable observable, final java.lang.Object data) {
            try {
                final java.lang.Throwable[] array = new java.lang.Throwable[0];
                if (data == null) {
                    if (com.akamai.botman.e.i == 1L || com.akamai.botman.e.i == 6L || (com.akamai.botman.e.i > 6L && (com.akamai.botman.e.i - 6L) % 10L == 0L)) {
                        com.cyberfend.cyfsecurity.CYFMonitor.b().b();
                    }
                    if (com.akamai.botman.d.d && (com.akamai.botman.e.i == 1L || com.akamai.botman.e.i == 6L || (com.akamai.botman.e.i > 6L && (com.akamai.botman.e.i - 6L) % 10L == 0L))) {
                        com.akamai.botman.b.a(4);
                    }
                }
                else {
                    final com.akamai.botman.g g2;
                    final com.akamai.botman.g g = new com.akamai.botman.g((g2 = (com.akamai.botman.g)data).a - this.a, g2.b, g2.c, g2.d);
                    java.lang.String s = g.b + "," + (java.lang.Object)g.a + "," + g.c;
                    if (g.d) {
                        s += ",1";
                    }
                    final java.lang.String string = s + ";";
                    com.akamai.botman.e.c += string;
                    com.akamai.botman.e.d += g.a + com.akamai.botman.t.b(g.b) + g.c;
                    ++com.akamai.botman.e.g;
                    ++com.akamai.botman.e.h;
                    new java.lang.StringBuilder("Count: ").append(com.akamai.botman.e.i).append(", Key String ").append(string).append(", time(ms): ").append((java.lang.Object)(android.os.SystemClock.uptimeMillis() - com.akamai.botman.d.e - g.a));
                    final java.lang.Throwable[] array2 = new java.lang.Throwable[0];
                    this.a = g2.a;
                }
            }
            catch (java.lang.Exception ex) {
                com.akamai.botman.al.b("TextChangeManager", "Exception in processing text change event", ex);
                com.akamai.botman.f.a(ex);
            }
        }
    }
}
